package com.budwk.app.miniapp.common.enums;

import lombok.Getter;

/**
 * 安全隐患状态a17
 */
@Getter
public enum RallyMateEnum {

    WCN("未成年",0,17 ),
    YCN("已成年",18,200 ),
    YTX("已退休",45,150 );
    private String name;
    private Integer a;
    private Integer b;

    RallyMateEnum(String name,Integer a,Integer b ) {
        this.name = name;
        this.a = a;
        this.b = b;
    }


    public static Integer getA(String name) {
        for (RallyMateEnum o : RallyMateEnum.values()) {
            if (o.getName().equals(name) ) {
                return o.getA();
            }
        }
        return null;
    }
    public static Integer getB(String name) {
        for (RallyMateEnum o : RallyMateEnum.values()) {
            if (o.getName().equals(name) ) {
                return o.getB();
            }
        }
        return null;
    }

}
